<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    
</body>
<script>
        //传统方式,使用\n进行连接
        var message="听党指挥"+"\n"+"能打胜仗"+"\n"+"作风优良";
        //es6方式(反引号+反斜杠)
        var message2=`听党指挥
        能打胜仗
        作风优良`;
        console.log(message);
        console.log(message2);
</script>
</html>